package main

import (
	"fmt"

	st "gitee.com/project1/interface_02"
)

func main() {

	stu := st.Student{"greg", 21, 95.3}
	fmt.Println(stu.Name)
	ch := make(chan int, 1)
	for i := 0; i < 10; i++ {
		select {
		case x := <-ch:
			fmt.Println(x)
		case ch <- i:
		}
	}
}
